requirejs.config({

    baseUrl: JS_BASEURL,//默认库寻址地址,相对页面地址

    //路径配置
    paths: {
        /*库依赖*/
        jquery: "lib/jquery.min",
        zepto: "lib/zepto.min",
        swiper: "lib/swiper",
        lazyload: "lib/lazyload",
        underscore: 'lib/underscore',
        template: 'lib/template',
        domReady: "plugin/domReady",
        text: "plugin/require.text",    //text!text_path/hello.tpl
        css: "plugin/require.css",      //css!css_path/swiper.css
        text_path: "templates",
        css_path: "../css"
    },

    map: {
        '*': {
            'text': 'plugin/require.text',
            'css': 'plugin/require.css'
        }
    },

    shim: {
        underscore: {
            exports: '_'
        },

        'domReady': {
            exports: "domReady"
        },

        'zepto': {
            exports: '$'
        },

        'template': {
            exports: "template"
        },

        'swiper': {
            deps: ["css!css_path/swiper.css", 'jquery'],
            exports: "siwper"
        },

        'lazyload':['zepto']
    }
});